import { Column } from 'typeorm/decorator/columns/Column';
import BaseEntity from './base.entity';

export default class Message extends BaseEntity {
  @Column({
    type: 'varchar',
    length: 64,
    name: 'sender_user_id',
    comment: '消息发送者ID',
  })
  senderUserId: string;
  receiverUserId: string;
  message: string;
  sendAt: Date;
  receiveAt: Date;
  status: number;
}
